import { connect } from 'react-redux'
import App from '../components/app'
import { increment, decrement, asyncIncrement, asyncDecrement } from '../store/actions'


// 使用connect来包装一层UI组件，把store的状态映射到里面去
export default connect(
  (state) => ({ store: state.count }),
  { increment, decrement, asyncIncrement, asyncDecrement }
)(App)